#!/bin/sh

#####################################
#function: syncdata and create index
steps:
1, call syncdata.sh to syncdata to each search[i]
2, call genlist.sh to create index file that may be All_CurFilelist.txt.false or CurFilelist.txt
3, call ~/ytt/run/SetEnv.sh
4, rm -rf ~/ytt/run/flag.onlineready status.html *.stop
5, /var/ytt/bin/stopSrch.sh
6, /var/ytt/bin/daybuild.sh
7, /var/ytt/bin/startSrch.sh
8, /var/ytt/bin/online.sh
####################################

workdir=~/synctool-test-team/MASTERDIR/scripts
echo "sh $workdir/syncdata.sh"
#echo host:${host}, home:${home}
#${home}/synctool-test-team/MASTERDIR/scripts/./sayhello
